<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <title>51问医生</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    {{--<link rel="shortcut icon" href="/Public/mobile/favicon.ico" type="image/x-icon" />--}}
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes"/> <meta name="apple-mobile-web-app-status-bar-style" content="yes"/>
    <script src="{{url('/js/jquery.min.js')}}" type="text/javascript"></script>
    <link rel="stylesheet" href="{{url('new/css/common.css')}}" />

    <script src="{{url('new/js/doctor_list.js')}}"></script>
    <link rel="stylesheet" href="{{url('new/css/question.css')}}" />
</head>
<body>
<div class="square">
    <ul>
        @if(count($questions) > 0)
            @foreach($questions as $question)
                <li class="qaList-one" @if(is_null($question->answer_time))style="padding-bottom: 0;padding-top: 0"@endif>
                    <a class="qaList-one-content">
                        <div class="question">
                            <span class="lable">问题：</span>{{$question->question}} @if(is_null($question->answer_time))<span style="font-size: 0.3rem;color: #9a9a9a">［待医生回答］</span>@endif</div>
                        @if(!is_null($question->answer_time))
                            <div class="doc-card-qalist">
                                <p>@if($question->doctor){{$question->doctor->doc_name}}-{{$question->doctor->station}}，{{$question->doctor->hospital}} @endif</p>
                                <div class="info">
                                    <div class="icon-cover">
                                        {{--<img class='doctor-icon' src="//mcdn.anxinyisheng.com/Public/wxyd/common/img/head_icon_c766c55.png">--}}
                                        <img class='doctor-icon' src="@if($question->doctor){{route('Api.Image.Show',['id'=>$question->doctor->doc_img])}}@else{{route('Api.Image.Show',['id'=>0])}}@endif">
                                        <span></span>
                                    </div>
                                    <div class="ax-bubble ax-bubble-timefree" data-id="{{$question->id}}">
                                        <a href="{{route('M.Home.newShowAnswer')}}?q_id={{$question->id}}" style="color: white">
                                        <timefree>查看回答</timefree>
                                        </a>
                                    </div>
                                    <p class="num">
                                        <span class="viewed">{{$question->read_num}}&nbsp;看过</span>
                                    </p>
                                </div>
                            </div>
                        @endif
                    </a>
                </li>
            @endforeach
        @endif
    </ul>
</div>
<div class="fake_footer"></div>
<script>
    $(function(){
        $(document).on('click','.ax-bubble-timefree',function(){
            var qid = $(this).attr('data-id');
            window.location.href = '{{route('M.Home.newShowAnswer')}}?q_id='+qid;
        });
    });
</script>
</body>
</html>